package com.edz.from0507to0513apk.Accountsave.aty;

import android.os.Handler;

import com.edz.from0507to0513apk.Base.BaseActivity;
import com.edz.from0507to0513apk.R;
import com.edz.from0507to0513apk.Util.SpUtils;

public class SpalashAty extends BaseActivity {

    @Override
    protected void initView() {

        final boolean isLogin = (boolean) SpUtils.get(SpalashAty.this, "isLogin", false);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                if (!isLogin) {
                    skipAnotherActivity(SpalashAty.this, LoginAty.class);
                } else {
                    skipAnotherActivity(SpalashAty.this, AccountSaveMainAty.class);
                }
                finish();
            }
        }, 2000);
    }

    @Override
    protected void initData() {
    }

    @Override
    protected void setEvent() {

    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_spalash;
    }
}
